import httpRequest from "@/services";
export function getStationList(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/station/list",
    method: "get",
    params: {
      ...params,
      msg_id: "1034",
      start_no: 1,
    },
  });
}

export function addStation(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/station",
    method: "post",
    params: {
      ...params,
    },
  });
}

export function editStation(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/station",
    method: "put",
    params: {
      ...params,
    },
  });
}

export function deleteStation(params) {
  return httpRequest({
    url: window.config.apiHost + "/trace/station/"+ params,
    method: "delete",
    params: {
      ...params,
    },
  });
}
